<%-- 
    Document   : mappaPalazzetto
    Created on : 5-mag-2014, 16.46.17
    Author     : Marco
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>
    <head>
        <title>SportingEventClub - Palazzetto</title>
        <meta http-equiv="Content-Type" content="text/html" charset=utf-8" />
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>        
        <link rel="stylesheet" type="text/css" href="CSS/BaseSite.css" />
        <meta name="viewport" content="width=device-width">
        <link rel="stylesheet" type="text/css" href="CSS/bubble.css" />
        <script type="text/javascript" src="JQuery/bubble.js"></script>
        <link rel="shortcut icon" href= "Images/stadion-icon.png"/>
        <link rel="stylesheet" type="text/css" href="CSS/vertical-ticker.css"/>
        <script type="text/javascript" src="JQuery/jquery.totemticker.js"></script>

    </head>
    <body> 

        <jsp:include page="ServletInitDB"/>
        <div class="main">
            <div class="page">
                <div class="header">       
                    <div class="login">
                        <%@include file="login.jsp"%>
                    </div>
                    <div class="banner">
                    </div>
                    <div class="topmenu">
                        <%@include file="topmenu.jsp" %>
                    </div>
                </div>
                <div class="content">
                    <div class="content-in">
                        <div class="left-panel">
                            <div class="left-panel-in">
                               <div id="mappapalazzetto" style="text-align: center;">
                                <%session = request.getSession();
                                  String login = (String) session.getAttribute("nomeUtente");
                                  if(login==null){
                                %>
                                    <%@include file="erroresession.jsp"%>
                                <% }else{%>
                                   <h2>Seleziona settore:</h2><br>
                                   <%
                                    int postiParterre = Integer.parseInt(request.getAttribute("parterre").toString());
                                    int postiArancio1 = Integer.parseInt(request.getAttribute("arancio1").toString());
                                    int postiArancio2 = Integer.parseInt(request.getAttribute("arancio2").toString());
                                    int postiBlu1 = Integer.parseInt(request.getAttribute("blu1").toString());
                                    int postiBlu2 = Integer.parseInt(request.getAttribute("blu2").toString());
                                    int postiRosso1 = Integer.parseInt(request.getAttribute("rosso1").toString());
                                    int postiRosso2 = Integer.parseInt(request.getAttribute("rosso2").toString());
                                    int postiVerde = Integer.parseInt(request.getAttribute("verde").toString());
                                    int postiGiallo = Integer.parseInt(request.getAttribute("giallo").toString());
                                   %>
                                    <map id="palazzetto_map" name="palazzetto_map">
                                        <area shape="rect" alt="" title="" coords="85,34,333,68" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=arancio1" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiArancio1%>);return false" onmouseout="hideToolTip()" />
                                        <area shape="rect" alt="" title="" coords="86,70,333,104" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=blu1"  onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiBlu1%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="rect" alt="" title="" coords="385,156,420,327" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=verde" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiVerde%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="rect" alt="" title="" coords="423,156,460,327" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=giallo" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiGiallo%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="rect" alt="" title="" coords="84,380,336,413" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=blu2" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiBlu2%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="rect" alt="" title="" coords="84,416,336,450" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=arancio2" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiArancio2%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="rect" alt="" title="" coords="120,153,337,329" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=parterre" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiParterre%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="poly" alt="" title="" coords="387,331,461,333,445,383,421,415,390,438,363,449,341,452,340,381,362,375,379,362,387,348,387,348,390,332" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=rosso2" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiRosso2%>);return false" onmouseout="hideToolTip()"/>
                                        <area shape="poly" alt="" title="" coords="340,34,371,41,403,57,433,84,453,117,460,149,385,148,385,138,381,130,369,114,354,109,339,106,340,36" href="<%=request.getContextPath()%>/GeneralController?submit=selezioneposto&evento=<%=request.getParameter("idevento").toString()%>&settore=rosso1" onmousemove="showToolTip(event,'Posti disponibili:' + '<br>' + <%=postiRosso1%>);return false" onmouseout="hideToolTip()"/>
                                    </map>            
                                    <img src="Images/palazzetto.jpg" alt="palazzetto_map" usemap="#palazzetto_map" width="484" height="480">
                                <%}%>
                                </div>
                                <div id="bubble_tooltip">
                                    <div class="bubble_top"><span></span></div>
                                    <div class="bubble_middle"><span id="bubble_tooltip_content"></span></div>
                                    <div class="bubble_bottom"></div>
                                </div>
                            </div>
                        </div>
                        <div class="right-panel">
                            <div class="right-panel-in">
                                <jsp:include page="/GeneralController">
                                    <jsp:param name="submit" value="right-content"/>
                                    <jsp:param name="op" value="newsbox"/>
                                </jsp:include>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="footer">
                    <%@include file="footer.jsp" %> 
                </div>
            </div>
        </div> 
    </body>
</html>